package com.stadium.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 赛程安排表
 *
 * @author wsl
 * @email
 * @date 2021-05-08 13:42:21
 */
@Data
@ApiModel(value = "赛程安排表Dto")
public class GameScheduleDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "赛项id")
    private String eventId;
    @ApiModelProperty(value = "主队id")
    private String hometeamId;
    @ApiModelProperty(value = "客队id")
    private String guestteamId;
    @ApiModelProperty(value = "主队名称")
    private String hometeamName;
    @ApiModelProperty(value = "主队logo")
    private String hometeamLogo;
    @ApiModelProperty(value = "客队名称")
    private String guestteamName;
    @ApiModelProperty(value = "客队logo")
    private String guestteamLogo;
    @ApiModelProperty(value = "主队得分")
    private Integer hometeamScore;
    @ApiModelProperty(value = "客队得分")
    private Integer guestteamScore;
    @ApiModelProperty(value = "比赛开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date competitionStarttime;
    @ApiModelProperty(value = "比赛结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date competitionEndtime;

    @ApiModelProperty(value = "比赛地点")
    private String adress;
    @ApiModelProperty(value = "比赛状态（0：未开始 1：进行中 2：已结束）")
    private String competitionStauts;
    @ApiModelProperty(value = "比赛规则")
    private String ruleId;
}
